<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
</head>
<body>
<h1 align="center" style="margin-right:20px">添加用户信息</h1>
    <form method=post action="admin.php?c=user&m=add" enctype="multipart/form-data" class="form-horizontal">
      <div class="form-group">
        <label for="exampleInputUserName1" class="col-md-5 control-label">用户名</label>
        <div class="col-md-3">
          <input type="text" name="username" class="form-control" id="exampleInputUserName1" placeholder="姓名" required>
        </div>
      </div>
      <div class="form-group">
        <label for="exampleInputPassword1" class="col-md-5 control-label">密码</label>
        <div class="col-md-3">
          <input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="密码" required>
        </div>
      </div>
      <div class="form-group">
        <label for="exampleInputAge1" class="col-md-5 control-label">生日</label>
        <div class="col-md-3">
          <input type="date" name="birthdate" class="form-control" id="exampleInputPassword1" placeholder="生日" required>
        </div>
      </div>
      <div class="form-group">
        <label class="col-md-5 control-label">性别</label>
        <div class="col-md-3">
          <label class="radio-inline">
            <input type="radio" name="gender" value=0 checked> 男
          </label>
          <label class="radio-inline">
            <input type="radio" name="gender" value=1> 女
          </label>
        </div>
      </div>
      <div class="form-group">
        <label class="col-md-5 control-label">爱好</label>
        <div class="col-md-3">
          <label class="checkbox-inline">
            <input type="checkbox" name="hobby[]" value="旅游"> 旅游
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" name="hobby[]" value="登山"> 登山
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" name="hobby[]" value="健身"> 健身
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" name="hobby[]" value="上网"> 上网
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" name="hobby[]" value="游泳"> 游泳
          </label>
        </div>
      </div>
      <div class="form-group">
        <label class="col-md-5 control-label">学历</label>
        <div class="col-md-3">
          <select class="form-control" name="degree">
            <option value="">请选择</option>
            <option value=0>高中</option>
            <option value=1>大学</option>
            <option value=2>研究生</option>
            <option value=3>博士生</option>
          </select>
        </div>
      </div>
      <div class="form-group">
        <label for="exampleInputTextarea1" class="col-md-5 control-label">自我介绍</label>
        <div class="col-md-3">
          <textarea class="form-control" rows="3" id="exampleInputTextarea1" placeholder="自我介绍" name="intro"></textarea>
        </div>
      </div>
      <div class="form-group">
        <label for="exampleInputFile" class="col-md-5 control-label">头像</label>
        <div class="col-md-3">
          <input type="file" name="pic" id="exampleInputFile" required>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-offset-5 col-sm-10">
          <input type="submit" class="btn btn-success" value="提交">
          <input type="reset" class="btn btn-primary" value="重置">
        </div>
      </div>
    </form>
<!-- <form method=post action="admin.php?c=user&m=add" enctype="multipart/form-data" class="form-horizontal">

  <div align="center"  class="table table-hover">

    <div class="form-group">
      <label  for="inputEmail3" class="col-sm-4 control-label">姓名：</label>  
        <div  class="col-sm-4">
          <input class="form-control" type="text" name="username" required>
        </div>
    </div>

    <div class="form-group">
      <label  for="inputEmail3" class="col-sm-4 control-label">密码：</label>   
        <div  class="col-sm-4">
          <input class="form-control" type="password" name="password" required>
        </div>
    </div>

    <div class="form-group">
      <label  for="inputEmail3" class="col-sm-4 control-label">性别：</label> 
        <div  class="col-sm-4">
          <input type="radio" name="gender"  value=0 checked>男
         <input type="radio" name="gender"  value=1>女
        </div>
    </div>

    <div class="form-group">
      <label  for="inputEmail3" class="col-sm-4 control-label">生日：</label>   
        <div  class="col-sm-4">
          <input class="form-control" type="date" name="birthdate">
        </div>
    </div> 

    <div class="form-group">
      <label  for="inputEmail3" class="col-sm-4 control-label">爱好：</label>   
        <div  class="col-sm-4">
          <input type="checkbox" name="hobby[]" value="旅游" checked>旅游
          <input type="checkbox" name="hobby[]" value="登山"  checked>登山
          <input type="checkbox" name="hobby[]" value="健身">健身
          <input type="checkbox" name="hobby[]" value="上网">上网
          <input type="checkbox" name="hobby[]" value="游泳">游泳
        </div>
    </div>

    <div class="form-group">
      <label  for="inputEmail3" class="col-sm-4 control-label">学历：</label>   
        <div  class="col-sm-4">
          <select class="form-control" name="degree">
            <option value="0">请选择</option>
            <option value="1">高中</option> 
            <option value="2">大学</option>
            <option value="3">研究生</option>  
            <option value="4">博士生</option>
          </select>
        </div>
    </div>

    <div class="form-group">
      <label  for="inputEmail3" class="col-sm-4 control-label">自我介绍</label>  
        <div class="col-sm-4">
          <textarea class="form-control" name="intro">自我简介：</textarea>
        </div>
    </div>

    <div class="form-group">
      <label  for="inputEmail3" class="col-sm-4 control-label">头像</label>   
        <div class="col-sm-4">
          <input class="form-control" type="file" name="pic">
        </div>
    </div>

    <div class="form-group">
      <div class="col-sm-offset-3 col-sm-6">
          <input type="submit" value="提交" class="btn btn-primary">
          <input type="reset" value="重置" class="btn btn-danger">
      </div>
    </div>
</div>

</form> -->
</body>
</html>